package net.ideapad.data;

import java.sql.Timestamp;
import java.util.HashSet;
import java.util.Set;


/**
 * AbstractIdea entity provides the base persistence definition of the Idea entity. @author MyEclipse Persistence Tools
 */

public abstract class AbstractIdea  implements java.io.Serializable {


    // Fields    

     private Integer ideaId;
     private User user;
     private Group group;
     private String ideaName;
     private String abstractText;
     private String bodyText;
     private Integer voteCount;
     private Timestamp lastEdit;
     private Set comments = new HashSet(0);
     private Set votes = new HashSet(0);


    // Constructors

    /** default constructor */
    public AbstractIdea() {
    }

    
    /** full constructor */
    public AbstractIdea(User user, Group group, String ideaName, String abstractText, String bodyText, Integer voteCount, Timestamp lastEdit, Set comments, Set votes) {
        this.user = user;
        this.group = group;
        this.ideaName = ideaName;
        this.abstractText = abstractText;
        this.bodyText = bodyText;
        this.voteCount = voteCount;
        this.lastEdit = lastEdit;
        this.comments = comments;
        this.votes = votes;
    }

   
    // Property accessors

    public Integer getIdeaId() {
        return this.ideaId;
    }
    
    public void setIdeaId(Integer ideaId) {
        this.ideaId = ideaId;
    }

    public User getUser() {
        return this.user;
    }
    
    public void setUser(User user) {
        this.user = user;
    }

    public Group getGroup() {
        return this.group;
    }
    
    public void setGroup(Group group) {
        this.group = group;
    }

    public String getIdeaName() {
        return this.ideaName;
    }
    
    public void setIdeaName(String ideaName) {
        this.ideaName = ideaName;
    }

    public String getAbstractText() {
        return this.abstractText;
    }
    
    public void setAbstractText(String abstractText) {
        this.abstractText = abstractText;
    }

    public String getBodyText() {
        return this.bodyText;
    }
    
    public void setBodyText(String bodyText) {
        this.bodyText = bodyText;
    }

    public Integer getVoteCount() {
        return this.voteCount;
    }
    
    public void setVoteCount(Integer voteCount) {
        this.voteCount = voteCount;
    }

    public Timestamp getLastEdit() {
        return this.lastEdit;
    }
    
    public void setLastEdit(Timestamp lastEdit) {
        this.lastEdit = lastEdit;
    }

    public Set getComments() {
        return this.comments;
    }
    
    public void setComments(Set comments) {
        this.comments = comments;
    }

    public Set getVotes() {
        return this.votes;
    }
    
    public void setVotes(Set votes) {
        this.votes = votes;
    }
   








}